<!-- Not Allow to Back Button Functionality-->
    window.history.forward();
    function noBack() { window.history.forward(); }
<!-- Not Allow to Back Button Functionality-->

<!-- Not Allow Refresh -->
	document.onmousedown="if (event.button==2) return false";
	document.oncontextmenu=new Function("return false");

	document.onkeydown = showDown;

	function showDown(evt) 
	{
		evt = (evt)? evt : ((event)? event : null);
		if (evt) 
		{
			if (evt.keyCode == 8 && (evt.srcElement.type!= "text" && evt.srcElement.type!= "textarea" && evt.srcElement.type!= "password")) 	// When backspace is pressed but not in form element
			{ cancelKey(evt); }
			else if (evt.keyCode == 116)  // When F5 is pressed
			{	cancelKey(evt);	}
			else if (evt.keyCode == 122) 	// When F11 is pressed
			{ cancelKey(evt); }
			else if (evt.ctrlKey && (evt.keyCode == 78 || evt.keyCode == 82)) 	// When ctrl is pressed with R or N
			{ cancelKey(evt); }
			else if (evt.altKey && evt.keyCode==37 ) 	// stop Alt left cursor
			{ return false; }
		}
	}
	
	function cancelKey(evt) 
	{
		if (evt.preventDefault) 
		{
			evt.preventDefault();
			return false;
		}
		else 
		{
			evt.keyCode = 0;
			evt.returnValue = false;
		}
	} 
<!-- Not Allow Refresh -->